package com.kaifamiao.time;

import java.time.DayOfWeek;
import java.time.LocalDate;
import java.time.Month;

public class LocalDateMethods {

    public static void main(String[] args) {

        LocalDate today = LocalDate.now();

        int year = today.getYear();
        System.out.println( year );

        Month month = today.getMonth();
        System.out.println( month );

        int mon = today.getMonthValue();
        System.out.println( mon );

        int date = today.getDayOfMonth();
        System.out.println( date );


        DayOfWeek dow = today.getDayOfWeek();
        System.out.println( dow );

        System.out.println( today.lengthOfMonth() );
        System.out.println( today.lengthOfYear() );

        System.out.println( today.isLeapYear() );

    }

}
